package com.educate.book.dao;

import com.educate.book.dao.impl.BookCatalogueDaoImpl;
import com.educate.book.model.bo.BookCatalogueBO;
import com.educate.book.model.po.BookCatalogue;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface BookCatalogueDao extends MongoRepository<BookCatalogue, String> {

    /**
     * #{@link BookCatalogueDaoImpl#query(BookCatalogueBO, Pageable)}
     */
    Page<BookCatalogue> query(BookCatalogueBO bo, Pageable pageable);
}
